import {of,from} from '../dist/index.esm.js'

const arrayLike = of(1,2,3)
arrayLike.subscribe({
  next:(value)=>console.log(value),
  complete:()=>console.log('done')
})

const promiseLike = from(Promise.resolve(4))
promiseLike.subscribe({
  next:(value)=>console.log(value),
  error:error=>console.log(error),
  complete:()=>console.log('done')
})